package com.thinkingstar.iads.common.tree.vo;

import javax.servlet.http.HttpServletRequest;

import com.thinkingstar.iads.cs.sys.enumerate.PROJECT_DESIGN_TYPE;
import com.thinkingstar.iads.datacenter.entity.DcProjectDesignCell;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 设计单元节点树
 * @author Administrator
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DesignCellDataTreeVO extends CommonTreeVO <DesignMentionDataTreeVO>{
	
	private String design_cell_code; //设计单元编号
	
	private String design_cell_name; //设计单元名称
	
	private Integer order_by; //设计单元计算排序
	
	protected static final String DESIGNCELL_TREE_URL = "/projectCenter/designcell/dcsj";
	
	//初始化动车设计
	public DesignCellDataTreeVO(DcProjectDesignCell dcProjectDesignCell , String project_id){
		this.name = dcProjectDesignCell.getDesign_cell_table_name();
		this.node_code = dcProjectDesignCell.getId();
		this.order_by = dcProjectDesignCell.getOrderBy();
		this.design_cell_code = dcProjectDesignCell.getDesign_cell_table_code();
		this.design_cell_name = dcProjectDesignCell.getDesign_cell_table_name();
		this.xurl = DESIGNCELL_TREE_URL+"/"+dcProjectDesignCell.getId()+"/"+project_id;
		this.node_type = PROJECT_DESIGN_TYPE.设计单元.getDesc();
	}

}
